/**
 * 
 */
package playGround.dungeon;


import playGround.square.Square;
import be.kuleuven.cs.som.annotate.Raw;

/**
 * @author Niels en Maarten
 * @version 2.3
 *
 */
public class Level<S extends Square> extends NonCompositeDungeon<S> {

	/**
	 * @param maxDimensions of this dungeon
	 * @effect
	 * 		| super(maxDimensions)
	 */
	@Raw
	public Level(Position maxDimensions) {
		super(maxDimensions);
	}
	/**
	 * @param position = the position to check
	 * @return
	 * 		| result == (super.canHaveAsMaxDimensions(position) && position.getZValue() == 0)
	 */
	@Override @Raw
	public boolean canHaveAsMaxDimensions(Position position) {
		return super.canHaveAsMaxDimensions(position) && position.getZValue()==0;
	}
	@Override
	public void resolveBorder(Position position, Square square) {
	}

}
